﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<timetableasy.Models.CampusManagerUser>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    RegisterCampusManager
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        RegisterCampusManager</h2>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>Fields</legend>
        <div class="editor-label">
            <%= Html.LabelFor(m => m.FirstName) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(m => m.FirstName)%>
            <%= Html.ValidationMessageFor(m => m.FirstName)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(m => m.LastName) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(m => m.LastName)%>
            <%= Html.ValidationMessageFor(m => m.LastName)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(m => m.Login) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(m => m.Login)%>
            <%= Html.ValidationMessageFor(m => m.Login)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(m => m.Email) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(m => m.Email) %>
            <%= Html.ValidationMessageFor(m => m.Email) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(m => m.Password) %>
        </div>
        <div class="editor-field">
            <%= Html.PasswordFor(m => m.Password) %>
            <%= Html.ValidationMessageFor(m => m.Password) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(m => m.ConfirmPassword) %>
        </div>
        <div class="editor-field">
            <%= Html.PasswordFor(m => m.ConfirmPassword) %>
            <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("CampusName", ViewData["Campuses"] as SelectList)%><%--, new { onchange = "redirect(this.value)" })%>--%>
        </div>
        <p>
            <input type="submit" value="Register" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
